Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.java.swing.RepaintManager
Constructor Summary | |
RepaintManager()
Create a new RepaintManager instance. |
Method Summary | |
void | addDirtyRegion(JComponent c,
int x,
int y,
int w,
int h)
Add a component in the list of components that should be refreshed. |
void | addInvalidComponent(JComponent invalidComponent)
Mark the component as in need of layout and queue a runnable for the event dispatching thread that will validate the components first isValidateRoot() ancestor. |
static RepaintManager | currentManager(java.awt.Component c)
Return the RepaintManager for the calling thread. |
static RepaintManager | currentManager(JComponent c)
|
java.awt.Rectangle | getDirtyRegion(JComponent aComponent)
Return the current dirty region for a component. |
java.awt.Dimension | getDoubleBufferMaximumSize()
|
java.awt.Image | getOffscreenBuffer(java.awt.Component c,
int proposedWidth,
int proposedHeight)
Return the offscreen buffer that should be used as a double buffer with the component c
By default there is a double buffer per RepaintManager.
|
boolean | isCompletelyDirty(JComponent aComponent)
Convenience that returns true if aComponent will be completely painted during the next paintDirtyRegions(). |
boolean | isDoubleBufferingEnabled()
|
void | markCompletelyClean(JComponent aComponent)
Mark a component completely clean. |
void | markCompletelyDirty(JComponent aComponent)
Mark a component completely dirty. |
void | paintDirtyRegions()
Paint all of the components that have been marked dirty. |
void | removeInvalidComponent(JComponent component)
Remove a component from the list of invalid components. |
static void | setCurrentManager(RepaintManager aRepaintManager)
Set the RepaintManager that should be used for the calling thread. |
void | setDoubleBufferingEnabled(boolean aFlag)
|
void | setDoubleBufferMaximumSize(java.awt.Dimension d)
Set the maximum double buffer size. |
java.lang.String | toString()
|
void | validateInvalidComponents()
Validate all of the components that have been marked invalid. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public RepaintManager()
Method Detail |
public static RepaintManager currentManager(java.awt.Component c)
public static RepaintManager currentManager(JComponent c)
public static void setCurrentManager(RepaintManager aRepaintManager)
public void addInvalidComponent(JComponent invalidComponent)
public void removeInvalidComponent(JComponent component)
public void addDirtyRegion(JComponent c, int x, int y, int w, int h)
public java.awt.Rectangle getDirtyRegion(JComponent aComponent)
public void markCompletelyDirty(JComponent aComponent)
public void markCompletelyClean(JComponent aComponent)
public boolean isCompletelyDirty(JComponent aComponent)
public void validateInvalidComponents()
public void paintDirtyRegions()
public java.lang.String toString()
public java.awt.Image getOffscreenBuffer(java.awt.Component c, int proposedWidth, int proposedHeight)
c
By default there is a double buffer per RepaintManager.
The buffer might be smaller than (proposedWidth,proposedHeight)
This happens when the maximum double buffer size as been set for the receiving
repaint manager.public void setDoubleBufferMaximumSize(java.awt.Dimension d)
public java.awt.Dimension getDoubleBufferMaximumSize()
public void setDoubleBufferingEnabled(boolean aFlag)
public boolean isDoubleBufferingEnabled()
Overview | Package | Class | Tree | Deprecated | Index | Help |
Java Platform 1.1.7 |
||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |